$ () ->
	$(".logout").click (e) ->
		$.post "/api/admin/logout",(res) ->
			if res.status.errCode is 0
				window.location.reload()
			else
				alert res.status.message
